package com.liuhan.house.service;

import com.github.pagehelper.PageInfo;
import com.liuhan.house.pojo.User;

public interface UserService {
    boolean addUser(User user);

    boolean enable(String key);

    User verifyUser(String username, String password);

    void updateUserInformation(String username, String phone, String aboutme, String email);

    User getUserByEmail(String email);

    void editorPassword(String newPassword, String email);

    User getUserByEmailAndPassword(String userEmail, String password);

    User selectByPrimaryKey(Integer userId);

    PageInfo<User> getAgencyList(Integer pageNum, Integer pageSize);

    User getInfoById(Integer userId);
}
